﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace LyyCMS.Core.Models
{
    public class Comments
    {
        [DisplayName("序列号")]
        public virtual int Id { get; set; }

        /// <summary>
        /// 博客id
        /// </summary>
        public virtual int BlogId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [DisplayName("评论标题")]
        public virtual string Title { get; set; }

        /// <summary>
        /// 回复内容
        /// </summary>
        [DisplayName("评论内容")]
        public virtual string Comment { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [DisplayName("联系方式")]
        public virtual string Connact { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public virtual DateTime? Create_At { get; set; }

        /// <summary>
        /// 博客
        /// </summary>
        public virtual Blog Blog { get; set; }
    }
}